home *** CD-ROM | disk | FTP | other *** search
/ PC-SIG: World of Games / PC-SIG World of Games (CDRM1080710) (1993).iso / ENT / DISK1329.ZIP / PROPLAY / PROPLAY.DOC < prev    next >
Text File  |  1988-07-13  |  20KB  |  441 lines

  1.  
  2. E
  3.                           PRO-PLAYER UPGRADE PACKAGE
  4.                          (WORKS WITH BLACKJACK V1.00) F
  5.                          ----------------------------
  6.  
  7.                         Copyright (c) IBG SOFTWARE 1988
  8.                            Written by: Wayne Hammond
  9.                               All rights reserved
  10.  
  11.  
  12.          This is Registered User Supported Software.  You may use
  13.          (test) this package until you have determined if it is of
  14.          benefit to you.  If, after testing, you continue to use any
  15.          of the package output you are requested to send a (suggested)
  16.          $12.50 registration fee to:
  17.  
  18.                                IBG  Software
  19.                                PRO  Registration
  20.                                P.O. Box 27-6354
  21.                                Boca Raton, FL 33427-6354
  22.  
  23.          You may make as many copies as you need for your own use.
  24.          You are authorized to distribute the Pro-Player Upgrade and
  25.          its companion BLACKJACK package to others.
  26.  
  27.          YOU ARE NOT AUTHORIZED to distribute Pro-Player Upgrade
  28.          without an accompanying BLACKJACK package, the two packages
  29.          use facilities in the other and must work together.  I will
  30.          only distribute the Upgrade with its associated BLACKJACK
  31.          package.
  32.  
  33. E
  34.                                TABLE OF CONTENTS F
  35.                                -----------------
  36.  
  37.          Getting Started ........................................... 2
  38.  
  39.          Card Counts ............................................... 2
  40.  
  41.               How (When) BLACKJACK Counts .......................... 3
  42.  
  43.               Edit BLKJK.KNT (BLACKJACK's count file) .............. 3
  44.  
  45.               BLACKJACK Initialization of Counting ................. 5
  46.  
  47.          The Strategy System ....................................... 6
  48.  
  49.          Adding Strategy Screens ................................... 6
  50.  
  51.          Editing Strategy Screens .................................. 6
  52.  
  53.          Adding Color To Your Files ................................ 7
  54.  
  55.          Fixed Color Definitions ................................... 7
  56.  
  57.          Variable Color Definitions ................................ 8
  58.  
  59.  
  60.                                                                 Page 2
  61.  
  62. E
  63.          Getting Started F
  64.          ---------------
  65.  
  66.          The purpose of the Pro-Player Upgrade package is to allow you
  67.          to add YOUR card-counting-techniques and strategy-screens to
  68.          the IBG BLACKJACK program.  Adding a tailored card count also
  69.          enables the ability to replay the last hand or the current
  70.          shoe (deck).
  71.  
  72.          It is YOUR responsibility to decide what card count to use,
  73.          what strategy to follow, and how to manage your money.  I'm
  74.          only providing a practice facility.  However, to assist you
  75.          in these decisions, I'll list three of the reference books
  76.          which I use.  There are many others that you may select from.
  77.  
  78.            o   BEAT THE DEALER -- Edward O. Thorp
  79.  
  80.            o   MILLION DOLLAR BLACKJACK -- Ken Uston
  81.  
  82.            o   WINNING BLACKJACK -- Stanley Roberts
  83.  
  84.          You will be editing files in order to implement your counts
  85.          and strategies.  Therefore, I suggest that you make a working
  86.          copy of the upgrade-diskette and store the master-copy for
  87.          safekeeping.
  88.  
  89.          Further, I suggest that you do your editing on a separate
  90.          diskette (or sub-directory) and only copy your work output to
  91.          the BLACKJACK diskette (or sub-directory) when you are ready
  92.          to test your results.  This will become more understandable
  93.          after I explain the interfaces to BLACKJACK.
  94.  
  95. E
  96.          Card Counts F
  97.          -----------
  98.  
  99.          There are almost as many card counting techniques in
  100.          blackjack as there are card counters.  Therefore, it wasn't
  101.          feasible to attempt to directly program a card count that
  102.          would satisfy all users.
  103.  
  104.          What I have attempted is to put general counting code in
  105.          BLACKJACK and allow each user to satisfy their needs by
  106.          editing a file (BLKJK.KNT) that BLACKJACK reads when it
  107.          initializes.
  108.  
  109.          Although I have tested several counting techniques, I'm sure
  110.          that there are many that I haven't considered.  If you aren't
  111.          able to count-your-way; I'll work with you and modify the
  112.          program (if possible) or if we can't work it out, I'll refund
  113.          your money.
  114.  
  115.  
  116.                                                                 Page 3
  117. E
  118.          How (When) BLACKJACK Counts F
  119.          ---------------------------
  120.  
  121.          BLACKJACK counts each card as it is played, or as it would be
  122.          seen at a casino table.  This gives an accurate count in a
  123.          game where the cards are dealt open.  However, it allows the
  124.          program (and you) to see and count cards that a player in a
  125.          casino game (where the cards are dealt-face-down) might not
  126.          see.
  127.  
  128.          For example, a player ahead of you (in a face-down casino
  129.          game) stays.  You may or may not know the value of his/her
  130.          down cards and therefore may not be able to count them.
  131.  
  132.          However, in the computer face-down game, BLACKJACK knows and
  133.          counts the cards.  You may also, because you have seen them
  134.          when they were opened for play.  Therefore, this isn't the
  135.          best dealing-option to practice card counting.
  136.  
  137.          Another example (in the program) if the cards have to opened
  138.          for inspection because of an insurance bet decision or early
  139.          surrender decision, you get to see all cards and may be
  140.          tempted to count them then, but the program has only counted
  141.          the dealer's up-card at this time and counts the player's
  142.          cards as they play them.  So even if you are counting
  143.          accurately you may be out of synchronism with the program.
  144.  
  145.          If you are a card counter or practicing card counting, you
  146.          want to pick a game dealt-open (program default) just as you
  147.          would in a casino.
  148.  
  149.          Card counting is always active, but you have an option on
  150.          whether or not the count should be displayed.  This allows
  151.          you a chance to practice counting and verify your results at
  152.          selected times.
  153.  
  154.          When the Show-Count option is "on" the count is displayed in
  155.          the Command Box while you are betting, or on the strategy
  156.          screens during play.
  157.  
  158. E
  159.          Edit BLKJK.KNT (BLACKJACK's count file) F
  160.          ---------------------------------------
  161.  
  162.          To enable a custom card count you have to create or edit the
  163.          file BLKJK.KNT.  There are two sample files provided to
  164.          assist you in this effort.  SAMPLE1.KNT is balanced (sum of
  165.          cards in deck adds to zero), SAMPLE2.KNT is unbalanced (sum
  166.          of cards in deck doesn't add to zero).  Copy the desired type
  167.          to BLKJK.KNT and then edit BLKJK.KNT to fit your needs.
  168.  
  169.  
  170.                                                                 Page 4
  171.  
  172.          BLKJK.KNT is usable as soon as copied.  The format is fixed
  173.          as far as the order of variables is concerned, all variables
  174.          are required.  Numeric variables are separated by at least 1
  175.          blank (space).  The variables are separated from the comments
  176.          by a string of periods ( .... ).  The maximum length of the
  177.          string (character) variables is commented in the sample
  178.          files.
  179.  
  180.          An explanation follows:
  181.  
  182.          o the first 13 variables are the cards from ace through the
  183.            king.  Cards are counted by adding their value, the card
  184.            count is an algebraic sum.
  185.  
  186.          o begin count with ... count value of a single deck after
  187.            shuffle is complete.
  188.  
  189.          o bias count ... value that adjusts (biases) other values
  190.            based on the number of units (decks in the sample files) in
  191.            play.  The adjustment values is the bias value times
  192.            (number of decks - 1).  Specify zero (0) for no biasing.
  193.            The bias is either added or subtracted as indicated in the
  194.            comments.
  195.  
  196.          o start of poor condition ... value (single deck) beginning
  197.            of poor condition.
  198.  
  199.          o bias start of poor ...
  200.                      .
  201.                      .
  202.                      .
  203.            the remainder of the starts and biases follow the same
  204.            logic.
  205.  
  206.          o AceAdj ... an adjustment made in calculating whether the
  207.            number of aces left in the deck is as-expected.  The number
  208.            of cards-counted is subtracted from the total number of
  209.            cards giving number of uncounted cards to be played.  This
  210.            number is divided by thirteen, if the remainder is greater
  211.            than AceAdj, 1 is added to the number expected (quotient).
  212.  
  213.          o UnitAdj ... similar to AceAdj but operates on "unit" and
  214.            unit bias.  The sample files are based on a unit of a deck,
  215.            that is, 52.  If you vary unit size (discussed next), you
  216.            must consider all variables except the card values.
  217.  
  218.          o UnitAmt ... unit size divisor , that is, this number is
  219.            divided into the cards-still-to-be-played to determine how
  220.            many units are left.  If the remainder is greater than
  221.            UnitAdj, 1 is added to the number of units remaining.
  222.  
  223.          o report cards left:  this number is divided into the number
  224.            of cards-still-to-be-played and the result is displayed,
  225.            rounded to 1 decimal place.  A value of 52 generates decks,
  226.            26 yields half-decks, 1 gives number of cards (integer),
  227.            etc.
  228.  
  229.  
  230.                                                                 Page 5
  231.  
  232.          o report headings ... this is the character field that
  233.            identifies cards-left as defined above.  You have a length
  234.            of 5 which works nicely for "decks", perhaps "1/2 D" or
  235.            "Halfs" for half deck reporting.
  236.  
  237.          o the remainder are the labels for the five possible report
  238.            conditions.  The samples assign:
  239.  
  240.              ++rich  for the very rich condition
  241.              rich    for the rich condition
  242.              normal  for the normal condition
  243.              poor    for the poor condition and ...
  244.              --poor  for the very poor condition
  245.  
  246.          the conditions are selected as follows:
  247.  
  248.          if CardCount greater or equal VeryRich then set very rich
  249.            else if CardCount greater or equal Rich then set rich
  250.              else if CardCount less or equal VeryPoor then very poor
  251.                else if CardCount less or equal Poor set poor
  252.                  else set normal
  253.  
  254.          You can see that normal is the catch-all for non-specified
  255.          values.  Therefore, if you wanted a four level report such
  256.          as, very rich, rich, poor, or very poor, you could achieve it
  257.          by assigning poor a value 1 less than rich, and use the same
  258.          bias for poor as you use for rich.  Also, change the "normal"
  259.          heading to "poor".
  260.  
  261.          Further, if you don't like negative counts, you can scale all
  262.          values to move them away from zero; or the unbalanced count
  263.          of SAMPLE2 (which starts at 17) could be moved to swing
  264.          around zero.
  265.  
  266.          Pick your favorite algorithm and do it your way.
  267.  
  268. E
  269.          BLACKJACK Initialization of Counting F
  270.          ------------------------------------
  271.  
  272.          When BLACKJACK initializes it looks for the file BLKJK.KNT.
  273.          If available, the customized counts are loaded and the replay
  274.          option is enabled.  If the file isn't found BLACKJACK
  275.          initializes using its default count and no replay.
  276.  
  277.          If an error occurs during the short read (after finding the
  278.          file) it is most likely a format error in BLKJK.KNT.  You are
  279.          allowed to continue with the default count or end the program
  280.          and correct the error.  Next let's look at adding your
  281.          strategy screens.
  282.  
  283.  
  284.                                                                 Page 6
  285. E
  286.          The Strategy System F
  287.          -------------------
  288.  
  289.          The number of possible strategies is even higher than the
  290.          number of counting techniques, because many-strategies are
  291.          based on the count.  Therefore, I decided to implement
  292.          strategies as a file-based-system and allow user editing of
  293.          the screens.
  294.  
  295.          The technique used to read the strategy screens is very fast.
  296.          A fixed disk (hard file) has a brief (barely noticeable)
  297.          delay, while a virtual or RAM disk is instantaneous.  Even
  298.          diskette I/O is acceptable, delay is only noticeable while
  299.          the drive motor starts.  Further, you have color control even
  300.          if you change colors during play.
  301.  
  302. E
  303.          Adding Strategy Screens F
  304.          -----------------------
  305.  
  306.          The following files are used to add strategy screens:
  307.          (extension names are specific -- use same as provided)
  308.  
  309.            o MAKESTR  BAT   make strategy screens
  310.            o CONVERT  EXE   program to convert ASCII text files to
  311.                             intermediate work files (N1 .. N99)
  312.            o COMBINE  EXE   program to combine the work files to a
  313.                             single data file and index it
  314.            o BLKSTRAT CTL   control information--one entry per file
  315.            o STRATTOC TXT   strategy table-of-contents text
  316.            o BLKJKBAS TXT   basic strategy (screens) text
  317.            o USER-ADD TXT   edit file for your text strategy screens
  318.  
  319.          I suggest that (with these files in a directory separate from
  320.          the blackjack program directory) you type MAKESTR <Enter> and
  321.          exercise the system.  This will illustrate "MAKE" processing
  322.          and give you a feel for the number of work files and the
  323.          amount of disk space they need.  There is one work file for
  324.          each screen plus a control file for each (input) text file.
  325.  
  326.          Then, if all has gone well, you may copy BLKSTRAT.DTA and
  327.          BLKSTRAT.INX to the blackjack program sub-directory and run
  328.          BLACKJACK.  Look at the strategy system, it should be like
  329.          you have been using except there is now a 21st screen showing
  330.          user start.
  331.  
  332.          Now you are ready to build (edit) your own strategy screens.
  333.  
  334. E
  335.          Editing Strategy Screens F
  336.          ------------------------
  337.  
  338.          Editing is simple and straight-forward.  Use a left margin of
  339.          2 and a right margin of 39.  Data is placed on the screen
  340.          using the same rows and columns that you see while editing.
  341.          The maximum number of viewable rows is 18.
  342.  
  343.  
  344.                                                                 Page 7
  345.  
  346.          Use the form feed control character ASCII 12, (I can't show
  347.          you -- your printer will form feed) to terminate screens.
  348.          Not used with the last screen in a file.
  349.  
  350.          The default color attributes are the text foreground and text
  351.          background colors currently in use by BLACKJACK program.  The
  352.          screen is cleared before writing so you may have short panels
  353.          without garbage on the screen.  If you inadvertently have an
  354.          form feed as the last character in the file, an extra blank
  355.          screen is generated.
  356.  
  357.          That is all there is to it if you want to use standard
  358.          colors; however, you may add colors as described below.
  359.  
  360. E
  361.          Adding Color To Your Files F
  362.          --------------------------
  363.  
  364.          You set color attributes on individual fields.  A field may
  365.          be as small as one character or as large as a full line
  366.          (row).
  367.  
  368.          This requires control characters.  I selected from the ASCII
  369.          control characters to allow all text characters on the
  370.          screen.  Unfortunately, I can't illustrate correctly (in a
  371.          print file).  I will use "<" as start-of-field and ">" as
  372.          end-of-field, and give the ASCII values of the real
  373.          characters that you see in the sample files.
  374.  
  375.          You add color control by INSERTING (change your margins) the
  376.          end-of-field character > (ASCII 1 -- open smiley face)
  377.          followed by the foreground color and then the background
  378.          color.  For example:  "EXAMPLE>71" the word example would be
  379.          written with white letters on a blue background.  These color
  380.          control characters do not take space on the screen so what
  381.          you get is where you saw it before adding color.  The fixed
  382.          (once set they hold) color definitions follow.
  383.  
  384. E
  385.          Fixed Color Definitions F
  386.          -----------------------
  387.  
  388.          A list of the fixed colors ... the left column is both
  389.          foreground and background.  The right column is foreground
  390.          only.
  391.  
  392.                    0 -- black           8 -- gray
  393.                    1 -- blue            9 -- light blue
  394.                    2 -- green         a,A -- light green
  395.                    3 -- cyan          b,B -- light cyan
  396.                    4 -- red           c,C -- light red
  397.                    5 -- magenta       d,D -- light magenta
  398.                    6 -- brown         e,E -- yellow
  399.                    7 -- white         f,F -- bright white
  400.  
  401.  
  402.                                                                 Page 8
  403. E
  404.          Variable Color Definitions F
  405.          --------------------------
  406.  
  407.          It is possible to define colors which follow the color
  408.          options of BLACKJACK.  You use the same techniques but with
  409.          the following six codes.  Definition is (default) RBG
  410.          monitor, colors follow monitor changes as well as color
  411.          changes.
  412.  
  413.                  >11 -- standard text .. white on blue
  414.                  >22 -- action ......... yellow on blue
  415.                  >33 -- title .......... bright-white on blue
  416.                  >44 -- status ......... bright-white on red
  417.                  >55 -- command text ... white on black
  418.                  >66 -- command action . bright-white on black
  419.  
  420.          Any field that is not marked defaults to >11.
  421.  
  422.          One more control character needs to be mentioned and that is
  423.          the start-of-field character < (ASCII 15).  The < does not
  424.          take space on the display.  You only need to use this if you
  425.          want to write leading blanks with a different background
  426.          color.
  427.  
  428.          For example (using text left margin as 1):
  429.  
  430.               Example >11<     has leading blanks     >f4
  431.  
  432.          would write the word "Example" and 1 trailing blank using
  433.          standard colors, then 5 blank positions with red background,
  434.          then the text "has leading blanks" as bright-white on red,
  435.          then the 5 trailing blanks before end-of-field.  Program
  436.          normally does leading blank elimination and just uses the
  437.          background color established when the screen was cleared
  438.          before writing.
  439.  
  440.  
  441.